package com.acme.bankapp.domain.bank;

public abstract class AbstractAccount implements Account {
	protected double balance;

	public AbstractAccount(final double balance) {
		this.balance = balance;
	}

	public void deposit(final double amount) {
		if (amount > 0) {
			this.balance += amount;
		}
	}

	public double getBalance() {
		return this.balance;
	}
}
